package cesdentalrecord.dao.controller;

import java.util.ArrayList;

import cesdentalrecord.dao.OralHealthService;
import cesdentalrecord.dao.Student;

public class AddOralServicesController {

	public AddOralServicesController(){}
	
	public int validateOralServicesEntries(int studentID, String dateOfService, 
			boolean oralProphy, boolean tempFilling, boolean permFilling, boolean sealant,
			boolean exo, boolean flouride, boolean consultation, boolean other, String remark){
		try{
			Student s = new Student();
			return s.addOralServices(studentID, dateOfService, oralProphy, tempFilling, permFilling,
					sealant, exo, flouride, consultation, other, remark);
		}catch(Exception e){
			e.printStackTrace();
			return -1;
		}
	}
	
	public ArrayList<OralHealthService> validateRetrievalOfOralHealthServiceRequest(int studentID){
		try{
			OralHealthService ohs = new OralHealthService();
			return ohs.retrieveOralHealthService(studentID);
		}catch(Exception e){
			e.printStackTrace();
			return null;
		}
	}
}